package p270jp.pxv.android.service;

import android.content.Context;
import androidx.work.ListenableWorker;
import androidx.work.RxWorker;
import androidx.work.WorkerParameters;
import p014ae.C0135p4;
import p014ae.C0147r4;
import p064c6.Preconditions;
import p134ei.PixivAnalytics;
import p161fk.NewWorksNotificationCheckService;
import p189gn.AbstractC3435a;
import p210hh.PixivAccountManager;
import p213hk.NotificationUtils;
import p216hn.Lambda;
import p216hn.Reflection;
import p258jd.SingleJust;
import p325m0.MutabilityOwnership;
import p350mp.Timber;
import p376no.Koin;
import p404oo.AbstractC5475a;
import p484s6.C5998s;
import p491sd.C6034a;
import p579vo.Qualifier;
import p593wc.Single;
import p603wm.AbstractC6949c;
import p639y6.C7301s;
import p665z6.C7470y;

/* compiled from: NewFromFollowingLocalNotificationWorker.kt */
/* renamed from: jp.pxv.android.service.NewFromFollowingLocalNotificationWorker */
/* loaded from: classes2.dex */
public final class NewFromFollowingLocalNotificationWorker extends RxWorker implements AbstractC5475a {

    /* renamed from: c */
    public final Context f19304c;

    /* renamed from: d */
    public final AbstractC6949c f19305d = Preconditions.m9802P(1, new C4312a(this, null, null));

    /* renamed from: e */
    public final AbstractC6949c f19306e = Preconditions.m9802P(1, new C4313b(this, null, null));

    /* renamed from: f */
    public final AbstractC6949c f19307f = Preconditions.m9802P(1, new C4314c(this, null, null));

    /* compiled from: KoinComponent.kt */
    /* renamed from: jp.pxv.android.service.NewFromFollowingLocalNotificationWorker$a */
    /* loaded from: classes2.dex */
    public static final class C4312a extends Lambda implements AbstractC3435a<PixivAnalytics> {

        /* renamed from: a */
        public final /* synthetic */ AbstractC5475a f19308a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4312a(AbstractC5475a aVar, Qualifier aVar2, AbstractC3435a aVar3) {
            super(0);
            this.f19308a = aVar;
        }

        /* JADX WARN: Type inference failed for: r0v4, types: [ei.e, java.lang.Object] */
        @Override // p189gn.AbstractC3435a
        public final PixivAnalytics invoke() {
            return this.f19308a.getKoin().f24118a.m920a().m621a(Reflection.m5499a(PixivAnalytics.class), null, null);
        }
    }

    /* compiled from: KoinComponent.kt */
    /* renamed from: jp.pxv.android.service.NewFromFollowingLocalNotificationWorker$b */
    /* loaded from: classes2.dex */
    public static final class C4313b extends Lambda implements AbstractC3435a<NotificationUtils> {

        /* renamed from: a */
        public final /* synthetic */ AbstractC5475a f19309a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4313b(AbstractC5475a aVar, Qualifier aVar2, AbstractC3435a aVar3) {
            super(0);
            this.f19309a = aVar;
        }

        /* JADX WARN: Type inference failed for: r0v4, types: [hk.a, java.lang.Object] */
        @Override // p189gn.AbstractC3435a
        public final NotificationUtils invoke() {
            return this.f19309a.getKoin().f24118a.m920a().m621a(Reflection.m5499a(NotificationUtils.class), null, null);
        }
    }

    /* compiled from: KoinComponent.kt */
    /* renamed from: jp.pxv.android.service.NewFromFollowingLocalNotificationWorker$c */
    /* loaded from: classes2.dex */
    public static final class C4314c extends Lambda implements AbstractC3435a<NewWorksNotificationCheckService> {

        /* renamed from: a */
        public final /* synthetic */ AbstractC5475a f19310a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4314c(AbstractC5475a aVar, Qualifier aVar2, AbstractC3435a aVar3) {
            super(0);
            this.f19310a = aVar;
        }

        /* JADX WARN: Type inference failed for: r0v4, types: [fk.b, java.lang.Object] */
        @Override // p189gn.AbstractC3435a
        public final NewWorksNotificationCheckService invoke() {
            return this.f19310a.getKoin().f24118a.m920a().m621a(Reflection.m5499a(NewWorksNotificationCheckService.class), null, null);
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public NewFromFollowingLocalNotificationWorker(Context context, WorkerParameters workerParameters) {
        super(context, workerParameters);
        MutabilityOwnership.m3745m(context, "context");
        MutabilityOwnership.m3745m(workerParameters, "params");
        this.f19304c = context;
    }

    @Override // androidx.work.RxWorker
    /* renamed from: a */
    public Single<ListenableWorker.AbstractC0904a> mo4558a() {
        Timber.f23100a.mo3520i("NewFromFollowingLocalNotificationWorker: Called createWork", new Object[0]);
        if (!PixivAccountManager.m5511e().f16506l) {
            return new SingleJust(new ListenableWorker.AbstractC0904a.C0907c());
        }
        NewWorksNotificationCheckService bVar = (NewWorksNotificationCheckService) this.f19307f.getValue();
        return bVar.m6290a(bVar.f14647a.m6295a(), bVar.f14647a.m6294b(), bVar.f14647a.f14646a.f15666a.f15665a.getString("new_from_following_last_notified_date", null)).m971e(new C0135p4(bVar, 13)).m967i(new C7301s(bVar, 25)).m961o(C6034a.f26178c).m971e(new C0147r4(this, 15)).m967i(C7470y.f31347x).m964l(C5998s.f26040y);
    }

    @Override // p404oo.AbstractC5475a
    public Koin getKoin() {
        return AbstractC5475a.C5476a.m3211a(this);
    }
}
